package org.zcl.枚举switch;

/**
 * @PROJECT_NAME:
 * @DESCRIPTION:
 * @USER: ZhuChengLin
 * @DATE: 2021/11/23 16:41
 */
public class SwitchTest{//1
    public static void main(String[] args) {//2
        int i=1;
        i++;
        System.out.println(i++);
        System.out.println(i);
        System.out.println(i++);
        System.out.println(i);

        System.out.println("value="+switchit(4));//8
    }
    public static int switchit(int x) {
        int j=1;
        switch (x) {
            case 1:j++;
            case 2:j++;
            case 3:j++;
            case 4:j++;
            case 5:j++;
            default:j++;
        }
        return j+x;
    }
}